package com.serkol.ams.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.serkol.ams.bean.MyPage;
import com.serkol.ams.entity.Poster;
import me.chanjar.weixin.common.error.WxErrorException;

import java.awt.*;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Map;

/**
* @author pingan
* @description 针对表【poster】的数据库操作Service
* @createDate 2022-11-08 22:51:00
*/
public interface PosterService extends IService<Poster> {

    MyPage<Map<String, Object>> findByList(int pageSize, int current);


    List<Map<String, Object>> findByDataList();

    String createImage(String page, int type, Long userId, String pages, String key, long id) throws IOException, WxErrorException, URISyntaxException, FontFormatException;
    String createImage(Long userId, String pages, long othorid) throws IOException, WxErrorException, URISyntaxException, FontFormatException;

    String myQrcode(int type, Long userId) throws IOException, WxErrorException, URISyntaxException, FontFormatException;

    String regesterQrcode(Long userId) throws WxErrorException, IOException;


    Map<String,Object>  sharePoster(Long userId, String pages, long id) throws WxErrorException, IOException;
    Map<String,Object>  sharePosterRand(Long userId, String pages, int type, long id) throws WxErrorException, IOException;
}
